Problem Note 49606: Decimals are rounded to seven digits when exporting to XLSX files using the XLSX driver
Decimal data in Excel is truncated and rounded to seven digits when you export the data using the XLSX driver with SAS/ACCESS® Interface to PC Files. The following code shows an example:
data bob;
bob=1.345678481;
run;
proc export data=bob
dbms=xlsx
outfile='c:\sastest\mydigits.xlsx' replace;
sheet='fred';
run;
The Excel workbook will contain the digits 1.3456785. The seventh digit is rounded to the next decimal using normal rounding rules. To resolve the problem, do one of the following:
- Export the file using DBMS=EXCEL or DBMS=EXCELCS.
- Export the file as a tab-delimited text file or a comma-delimited text file using DBMS=CSV or DBMS=TAB and import the text file into Excel.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | 64-bit Enabled HP-UX | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2008 | 9.3 TS1M2 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Professional 32 bit | 9.3 TS1M2 | |
Microsoft Windows XP Professional | 9.3 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M2 | |
64-bit Enabled AIX | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Home Premium x64 | 9.3 TS1M2 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M2 | |
Windows 7 Home Premium 32 bit | 9.3 TS1M2 | |
Windows 7 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M2 | |
Windows Vista | 9.3 TS1M2 | |
Windows Vista for x64 | 9.3 TS1M2 | |
Windows 7 Ultimate x64 | 9.3 TS1M2 | |
Windows 7 Ultimate 32 bit | 9.3 TS1M2 | |
Windows 7 Professional x64 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.3 TS1M2 | 9.4 TS1M0 |
HP-UX IPF | 9.3 TS1M2 | 9.4 TS1M0 |
Linux | 9.3 TS1M2 | 9.4 TS1M0 |
Linux for x64 | 9.3 TS1M2 | 9.4 TS1M0 |
Solaris for x64 | 9.3 TS1M2 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2013-07-26 17:28:53 |
Date Created: | 2013-04-08 12:33:59 |